package basedemo

Car car=new Car(35000,2)
println "$car.price"
println "$car.year"
car.price=20000
println "$car.price"

//++实现循环,映射string的next方法
for (ch ='a';ch<'d';ch++){
    println ch
}
println 'c'.next()
list=[12]
list << 13
println list // [12, 13]